import request from "../../util/request"

// 查询存储员工请假信息列表
export function listLeaves(query) {
  return request({
    url: '/leaves/list',
    method: 'get',
    params: query
  })
}

// 查询存储员工请假信息详细
export function getLeaves(LeaveID) {
  return request({
    url: '/system/leaves/' + LeaveID,
    method: 'get'
  })
}

// 新增存储员工请假信息
export function addLeaves(data) {
  return request({
    url: '/system/leaves',
    method: 'post',
    data: data
  })
}

// 修改存储员工请假信息
export function updateLeaves(data) {
  return request({
    url: '/system/leaves',
    method: 'put',
    data: data
  })
}

// 删除存储员工请假信息
export function delLeaves(LeaveID) {
  return request({
    url: '/system/leaves/' + LeaveID,
    method: 'delete'
  })
}
